import json
import user
ret={"code":0,"message":"成功","data":{}}

def doWork(map):
    print(map)    
    Action=map['Action']
    Method=map['Method']
    Params=map["Params"]   

    if Action=='user':        
        if Method=='getdata':
            ret['data']=user.getdata(Params)
        if Method=='getuser':
            ret['data']=user.getuser(Params)
    return ret

